<?php
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>quantri</title>

<link href="../style/cssqt.css" rel="stylesheet" type="text/css" />
</head>

<body>
<?php
if(!$_SESSION["user"])
{
	?>
    <script>
	location.href="login.php";
	</script>
    <?php	
}
?>
<div id="khung_qt">
	<div id="header_qt">
    	<div id="user_qt">
        <img src="../image/User-icon.png" width="50" height="50" />Chào:<?php echo $_SESSION["user"];?>
        </div>
        <div id="logout_qt">
        <a href="../thanhvien/thoat.php"><img src="../image/Log-Out-icon.png" width="50" height="50" /></a>
        <a href="../thanhvien/thoat.php">Thoát</a>
        </div>
    </div><!--header_qt-->
    <div id="main_qt">
    	<div id="left_main_qt">
        	<div id="title_main_qt">
            Menu
            </div><!--title_main_qt-->
            <div id="left_menu_qt">
            	<ul>
                    <li><a href="../">Trang chủ</a></li>
                    <li><a href="indexqt.php?act=thongtinlt">Thông Tin Laptop</a></li>
                    <li><a href="indexqt.php?act=hang">Hãng Laptop</a></li>
                     <li><a href="indexqt.php?act=loai">Loại Laptop</a></li>
                    <li><a href="indexqt.php?act=themlt">Thêm Laptop</a></li>
                    <li><a href="indexqt.php?act=themhang">Thêm Hãng Laptop</a></li>
                    <li><a href="indexqt.php?act=themloai">Thêm Loại Laptop</a></li>
                    <li><a href="indexqt.php?act=qlkh">Quản Lý Khách Hàng</a></li>
                    <li><a href="indexqt.php?act=qldh">Quản Lý Đặt Hàng</a></li>
                   
                    </ul>
            </div><!--left_menu_qt-->
        </div><!--left_main_qt-->
        <div id="right_main_qt">
        <?php
		$act = $_GET["act"];
		$idsua = $_GET["idsua"];
		$idxem = $_GET["idxem"];

		
		if($act=="" && $idsua=="" && $idxem=="")
		include("thongtinlaptop.php");
		else if($idsua)
		include("sualaptop.php");
		else if($idxem)
		include("xem.php");	
		else if($act==themlt)
		include("themlaptop.php");
		else if($act==hang)
		include("hanglaptop.php");
		else if($act==loai)
		include("loailaptop.php");
		else if($act==themloai)
		include("themloailaptop.php");
		else if($act==themhang)
		include("themhang.php");
		else if($act==qlkh)
		include("quanlykhachhang.php");
		else if($act==qldh)
		include("quanlydathang.php");		
			
	
		
		else
		include("thongtinlaptop.php");
		
		?>
        </div><!--right_main_qt-->
    </div><!--main_qt-->	
</div><!--khung_qt-->
</body>
</html>